package com.mew.lobby.provide;

import com.mew.common.rest.invite.InviteUserResponseMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

/**
 * @author dylin
 * @create 2021/3/31
 */
@Component
@FeignClient(value = "mew-kernel-user")
@RequestMapping("/invite")
public interface InviteFeignService {
    @PostMapping("/bind_inviter")
    @ResponseBody
    int bindInviter(@RequestParam("uid")long uid,@RequestParam("inv") String inv);
    @GetMapping("/invite_user_list")
    @ResponseBody
    InviteUserResponseMessage getInviteUserList(@RequestParam("userId") long userId);
}
